﻿using System;

namespace WeekDayService
{
    public class WeekDayService : IWeekDayService
    {
        public string GetWeekDay(DateTime value)
        {
            switch (value.DayOfWeek)
            {
                case DayOfWeek.Friday:
                    return "Petak";
                case DayOfWeek.Monday:
                    return "Ponedelnik";
                case DayOfWeek.Saturday:
                    return "Subota";
                case DayOfWeek.Sunday:
                    return "Nedelq";
                case DayOfWeek.Thursday:
                    return "Chetvartak";
                case DayOfWeek.Tuesday:
                    return "Vtornik";
                case DayOfWeek.Wednesday:
                    return "Srqda";      
                default:
                    throw new ApplicationException("invalid day");
            }
        }
    }
}
